package com.book.book.dao;

import com.book.book.domain.QueueDO;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 图书漂流队列表
 * @author siyuan
 * @email 894266364@qq.com
 * @date 2018-03-20 15:56:19
 */
@Mapper
public interface QueueDao {

	QueueDO get(Integer id);
	
	List<QueueDO> list(Map<String, Object> map);
	
	int count(Map<String, Object> map);
	
	int save(QueueDO queue);
	
	int update(QueueDO queue);
	
	int remove(Integer id);
	
	int batchRemove(Integer[] ids);

	List<QueueDO> getQueueItem(@Param("userId") String userId,@Param("bookName") String bookName);
}
